
<template>
  <a-layout id="components-layout-demo-top" class="layout">
    <a-layout-content >
      <div :style="{ background: '#fff', padding:'20px',  minHeight: panelHeight }">
        <router-view></router-view>
      </div>
    </a-layout-content>
  </a-layout>
</template>

<script>
// 以下为bpmn工作流绘图工具的样式
import 'bpmn-js/dist/assets/diagram-js.css' // 左边工具栏以及编辑节点的样式
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css'
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css'
import 'bpmn-js-properties-panel/dist/assets/bpmn-js-properties-panel.css' // 右边工具栏样式
import {mapState, mapMutations} from 'vuex'
export default {
  name: 'app',
  data () {
    return {
    }
  },
  methods:{
    ...mapMutations(['initHost'])
  },
  created () {
      this.initHost();
  },
  computed:{
    ...mapState(['panelHeight'])
  }
}
</script>
<style>
.a-table {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}
.a-table > thead {
  line-height: 35px;
}
.a-table tr {
  border-bottom: 1px solid #e8e8e8;
}
.a-table tr td, .a-table tr th {
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
}
.a-table > tbody tr td {
  padding: 10px;
}
.a-table > .a-table-active{
  background: #fafafa;
}
.loading{
    position: absolute;
    right: 0;
    top: 50%;
    left: 0;
    text-align: center;
    bottom: 0;
    transform: translateY(-50px);
}
</style>
